package com.example.moreconnected;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.Message;
import android.util.Log;

import com.example.temperaturestick.Temperature;

public class configurationActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_configuration);
        Temperature.sharedCenter().setscandata(new Temperature.Onscanning() {
            @Override
            public void number(String name, String Mac) {
                String S = "蓝牙名字" + name + "地址" + Mac;
                Log.d("搜到",S);

            }
        });
        Temperature.sharedCenter().search();
    }
}
